]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Refuse to add (legacy) status icons not part of the session mode
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 May 2012 19:07:54 +0000 (21:07 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 29 May 2012 20:06:03 +0000 (22:06 +0200)
If a session mode does not use certain status items, we don't want their
fallback implementation to show up either, so filter them out.

https://bugzilla.gnome.org/show_bug.cgi?id=677058

js/ui/panel.js

index 121dab2a918d77ee52a1c5386fd12699f6cd4782..06d430056ddd2a5dfac5c50e3b24d941b6856c1f 100644 (file)
@@ -1144,6 +1144,9 @@ const Panel = new Lang.Class({
             return;
         }
 
+        if (Main.sessionMode.statusArea.order.indexOf(role) == -1)
+            return;
+
         icon.height = PANEL_ICON_SIZE;
         let buttonBox = new PanelMenu.ButtonBox();
         let box = buttonBox.actor;